#{extends 'EmploymentAction/layout.html' /}

<div id="crudList" class="">

    <h2 id="crudListTitle">招聘信息管理</h2>

    <div id="crudListTable">
    　<table>
       <thead>
         <tr>
           <th>标题</th>
           <th>发布日期</th>
           <th>人才信息</th>
           <th>删除</th>
         </tr>
       </thead>
       #{if flash.success}
	    <tr>
		    <td colspan="4" style="text-align: center">
		    <font color="red">${flash.success}</font>
		    </td>
	    </tr>
       #{/if}
       #{list items:employments,as:'employment'}
        <tr>
          <td><a href="@{show(employment.id)}">${employment.empTit}</a></td>
          <td>${employment.empDate}</td>
          <td>
              <a href="@{StaffAction.list(employment.id)}">人才信息</a>
          </td>
          <td><a href="@{delete(employment.id)}">删除</a></td>
        </tr>
       #{/list}
    </table>
    </div>

    <div id="crudListPagination">
    </div>

    <p id="crudListAdd">
        <a href="@{blank()}">添加</a>
    </p>

</div>
